Chiaming Yen's Cyber Universe

  • Home
    • SMap
    • reveal
    • blog
  • About
    • KMOL
    • MDE
    • ToDo
    • Google
      • Blogger
      • Youtube
  • Python
  • Portable
    • Lua 解譯
    • Wink
      • Add Wink
  • CMSiMDE
    • 建立網頁
    • 基本操作
      • 客製化
      • 編輯網頁內容
      • 上傳與引用檔案
      • 上傳與引用圖片
      • 嵌入程式碼
      • 嵌入影片檔
      • 檢視 STL
    • 置入 disqus
    • Gitlab 同步
    • Heroku 部署
    • Fossil SCM
    • 注意事項
      • 標題選擇
      • 靜態網頁 404
      • 動態網站錯誤
    • 延伸開發
    • 已知問題
      • IPv6
      • 上傳資料引用
      • MathJax
      • html 分頁
      • 靜態搜尋
      • template
      • 重複標題頁面
    • ajax
    • black
    • summernote
Portable << Previous Next >> Wink

Lua 解譯

利用 Msys2 編譯 Lua 原始碼:

從 https://www.lua.org/ 下載 5.4.3 原始碼解開壓縮檔案後, cd 進原始碼目錄後執行:

mingw32-make mingw

即可在 src 目錄中取得 luac.exe, liblua.a, lua.exe, lua54.dll 等檔案.

套用 https://github.com/fengari-lua/fengari-web 可以建立網際 Lua 解譯系統:

http://mde.tw/lab/downloads/lua/index.html

若希望在 SciTE 編輯器中解譯 .lua 程式, 則必須修改 Lua.properties 設定:

選擇利用 y:\lua-5.4.3\luac.exe 與 lua.exe 編譯或解譯 .lua 程式檔案.

command.compile.*.lua=y:\lua-5.4.3\luac -o "$(FileName).luc" "$(FileNameExt)"
# Lua 5.1
command.go.*.lua=y:\lua-5.4.3\lua "$(FileNameExt)"


Portable << Previous Next >> Wink

Copyright © All rights reserved | This template is made with by Colorlib